package com.lh.pro.server;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

/**
 * 作者：idea
 * 日期：2018/8/11
 * 描述：服务开关2
 */
public class Application2 {

    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext context=new ClassPathXmlApplicationContext(new String[]{"application-context.xml"});
        context.start();
        System.out.println("dubbo的服务生产者2开启了");
        //长期开启应用
        System.in.read();
    }
}
